function closewindow(){
	if(window.opener){
		var cc = window.opener;
		cc.location.reload(true);
		window.close();
	}
}
function clock(){
	i = i -1;
	if(document.getElementById("info")){
		var aa = document.getElementById("info");
		aa.innerHTML = "本窗口将在"+i+"秒后自动关闭";
		//document.getElementById("info").innerHTML = "本窗口将在"+i+"秒后自动关闭";
	}
	if(i > 0)
		setTimeout("clock();",1000);
	else
		closewindow();
}

var i = 4;
clock();

//document.location = "";
var cc = window.opener;

